﻿//using Lamex.Bridge;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lamex.Base;
using Lamex.Base.Framework.BaseAbs;
using Lamex.Common;
using System.Data;
using Lamex.SystemManager.Model;
using Lamex.SystemManager.Bridge;
using Lamex.SystemManager.Interfaces;

//using Lamex.Bridge;

namespace Lamex.SystemManager.BLL
{
    public partial class TUser : BaseBLL<TUserInfo>
    {
        public IUser dal = null;
        public TUser()
	   {
           base.Init(this.GetType().FullName, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
               dal = new ADODirect_User().GetInstance();
       }

        public void Logout(string account)
        {
            dal.Logout(account);
        }
        public DataSet Login(LoginUser loginUser, char LoginUserType)
        {
            return dal.Login(loginUser, LoginUserType);
        }
       public DataTable GetUserAuthorities(Loginer user)
        {
            return dal.GetUserAuthorities(user);
        }
        public List<TUserInfo> GetUserList(int RoleId)
       {
           return dal.GetUserList(RoleId);
       }

    }
}
